package com.aabte.design.pattern.structural.decorator.v1;

public class Test {

    public static void main(String[] args) {

        Battercake battercake = new Battercake();
        System.out.println(battercake.getDesc() + " 价格：" + battercake.getCost());

        BattercakeWithEgg battercakeWithEgg = new BattercakeWithEgg();
        System.out.println(battercakeWithEgg.getDesc() + " 价格：" + battercakeWithEgg.getCost());

        BattercakeWithEggSausage battercakeWithEggSausage = new BattercakeWithEggSausage();
        System.out.println(battercakeWithEggSausage.getDesc() + " 价格：" + battercakeWithEggSausage.getCost());
    }

}
